import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'

Vue.use(Vuex);

const state = {
  userInfo: {},
  token: '',
  photos: [],
  photoSort: 'time'
};

export default new Vuex.Store({
  state,
  mutations,
  actions
})
